export default{
    mode:"history",
    routes:[
        {
            path:"/",
            name:"Home",
            component:()=>import("@/views/Home")
        },
        {
            path:"/login",
            name:"Login",
            component:()=>import("@/views/Login")
        },
        {
            path:"/reg",
            name:"Reg",
            component:()=>import("@/views/Reg")
        },
        {
            path:"/channel/:id",
            name:"ChannelNews",
            component:()=>import("@/views/ChannelNews")
        },
        {
            path:"/personinfo",
            name:"PersonInfo",
            component:()=>import("@/views/PersonInfo"),
            meta:{
                auth:true
            }
        },
        {
            path:"/auth",
            name:"Auth",
            component:()=>import("@/views/Auth")
        },
        {
            path:"*",
            name:"404",
            component:()=>import("@/views/NotFound.vue")
        },
    ],
}